Ready_Vulnerability
No clear linear relation between the Readiness and the Vulnerability of a city.
m
Red : Poorly Prepared to withstand a shock Orange : Midly Prepared to withstand a shock Green : Fully Prepared to withstand a shock
Targets.show()
plt.barh([x for x in range(len(importance))], importance, tick_label = X.columns)
plt.title('Features importance for Vulnerability');
plt.barh([x for x in range(len(importance))], importance, tick_label = X.columns)
plt.title('Features importance for Readiness');
plt.figure()
plt.xlabel("Number of features selected")
plt.ylabel("Cross validation score (nb of correct classifications)")
plt.plot(range(min_features_to_select, len(rfecv1.grid_scores_) + min_features_to_select),rfecv1.grid_scores_)
plt.show()
plt.figure()
plt.xlabel("Number of features selected")
plt.ylabel("Cross validation score (nb of correct classifications)")
plt.plot(range(min_features_to_select,len(rfecv.grid_scores_) + min_features_to_select),rfecv.grid_scores_)
plt.show()
